/*
 * Created on Jan 16, 2006
 */
package dbsucxentW;

import dbsucxentW.storageW.loadersW.XmlShredder;
import dbsucxentW.storageW.loadersW.relationalW.ThreadedRelationalXmlShredder;
import java.sql.Connection;

/**
 * @author Seah Boon Siew
 */
public class SucxentShredder {
    public SucxentShredder(String name, Connection dbConnection, String dbName) throws Exception {
        XmlShredder shredder = new ThreadedRelationalXmlShredder(name, dbConnection, dbName);
        shredder.shred();
    }

    public SucxentShredder(String absoluteFilePath, Connection dbConnection,
            String dbName, String dataSourceName) throws Exception {
        
        XmlShredder shredder = new ThreadedRelationalXmlShredder(
                absoluteFilePath, 
                dbConnection, 
                dbName,
                dataSourceName);
        shredder.shred();
    }
}
